package com.hm.cdz.trace;

import java.text.SimpleDateFormat;

import com.hm.common.conversion.U16;

/**
 * @author shishun.wang
 * @date 2018年5月4日 下午3:32:00
 * @version 1.0
 * @describe
 */
public class Trance75 {

	public static void main(String[] args) throws Exception {
		String str = "5353 1F00 75 01 08 8A291B890B28000002010103063030303030306F0100 A5 45";
		str = "8A291B890B280000 02 01010306 3030303030306F0100";
//		String id = str.substring(0, 16);
		System.out.println("原始报文:53 53 1F 00 75 01 08 8A 29 1B 89 0B 28 00 00 02 01 01 03 06 30 30 30 30 30 30 6F 01 00 A5 45 ");
		System.out.println("充电桩ID:"+new U16("8A291B890B280000").toU10());
		System.out.println("充电口编号:"+new U16("02").toU10());
		System.out.println("localid:"+new U16("01010306").toU10());
		System.out.println("数字签名:"+new U16(new U16("3030303030306F0100").toU10()+"").toAscii());
	
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-ddd HH:mm:ss");
		System.out.println(format.parse("2018-05-07 00:00:00").getTime());
		System.out.println(format.parse("2019-05-07 00:00:00").getTime());
		
		
	}
	
}
